export default [
  { prop: 'headImage', label: '头像', formatter: 'head', width: 60 },
  { prop: 'name', label: '姓名' },
  { prop: 'age', label: '年龄', width: 60 },
  { prop: 'phone', label: '联系电话' },
  { prop: 'worktimeBegin', label: '工作时间', formatter: function(row, colum) {
    return row.worktimeBegin + '~' + row.worktimeEnd
  } },
  { prop: 'achievement', label: '业绩', width: 100 },
  { prop: 'refund', label: '退单数量', width: 100 },
  { prop: 'status', label: '审核状态', width: 100, formatter: function(row, colum) {
    return row.status === 1 ? '通过' : '驳回'
  } },
  { prop: 'isuse', label: '禁/启', width: 100, formatter: function(row, colum) {
    return row.isuse === 0 ? '启用' : '禁用'
  } },
  { prop: 'workstatus', label: '工作状诚', width: 100, formatter: function(row, colum) {
    switch (row.workstatus) {
      case 0:
        return '开工'
      case 1:
        return '忙碌'
      default:
        return '收工'
    }
  } },
  { prop: 'createtime', label: '注册时间', showOverflowTooltip: true },
  { type: 'handle', width: '200', buttons: [
    { text: '详情', type: 'info' },
    { text: '启用', type: 'success', isShow: function(row, rowIndex) { return row.status === 1 && row.isuse === -1 } },
    { text: '禁用', type: 'danger', isShow: function(row, rowIndex) { return row.status === 1 && row.isuse === 0 } },
    { text: '通过', type: 'success', isShow: function(row, rowIndex) { return row.status === 0 } },
    { text: '驳回', type: 'danger', isShow: function(row, rowIndex) { return row.status === 0 } }
  ]
  }
]
